package work.timejay.shop.entity.shop;

import work.timejay.common.SuperModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 项目表
 * </p>
 *
 * @author 王文杰
 * @since 2024-02-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("shop")
public class Shop extends SuperModel<Shop> {

    private static final long serialVersionUID = 1L;

    /**
     * 类目名称
     */
    @TableField("name")
    private String name;

    /**
     * 分类id
     */
    @TableField("type_id")
    private String typeId;

    /**
     * 型号 1手机 2 网页
     */
    private String model;

    /**
     * 1 正常 2 下线
     */
    @TableField("status")
    private Integer status;

    /**
     * 点赞数
     */
    @TableField("give_num")
    private Long giveNum;

    /**
     * 分享数
     */
    @TableField("share_num")
    private Long shareNum;

    /**
     * 关注数
     */
    @TableField("like_num")
    private Long likeNum;

    /**
     * 作者
     */
    @TableField("author")
    private String author;

    /**
     * 项目图片
     */
    @TableField("shop_path")
    private String shopPath;


    public static final String NAME = "name";

    public static final String STATUS = "status";

    public static final String GIVE_NUM = "give_num";

    public static final String SHARE_NUM = "share_num";

    public static final String LIKE_NUM = "like_num";

    public static final String AUTHOR = "author";

    public static final String SHOP_PATH = "shop_path";

    @Override
    protected Serializable pkVal() {
        return null;
    }

}
